package com.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.context.ApplicationContext;

/**
 * Created by DongGuangqing on 2016/10/3.
 */

@EnableEurekaServer // 注解启动一个服务注册中心提供给其他应用进行对话
@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        ApplicationContext ctx = SpringApplication.run(Application.class);
//        new SpringApplicationBuilder(Application.class).web(true).run(args);
    }
}
